<?php

namespace App\Http\Controllers\User;

use App\Http\Controllers\BaseController;
use App\Models\UserPointsDetail;

class PointsController extends BaseController
{
    public function index()
    {
        $user_id = auth('api')->id();

        $points = UserPointsDetail::query()
            ->where('user_id',$user_id)
            ->orderByDesc('id')
            ->simplePaginate();


        return $this->success($points);
    }
}
